package com.yuhanginfo.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.service.WebCrudService;
import com.yuhanginfo.modules.web.dao.WebEnquiryGoodsReplyDao;
import com.yuhanginfo.modules.web.entity.WebEnquiryGoodsReply;

/**
 * 询价Service
 * @author yangs
 * @version 2017-11-23
 */
@Service
@Transactional(readOnly = true)
public class WebEnquiryGoodsReplyService extends WebCrudService<WebEnquiryGoodsReplyDao, WebEnquiryGoodsReply> {
     @Autowired
     private WebEnquiryGoodsReplyDao webEnquiryGoodsReplyDao;
	
    @Transactional(readOnly = false)
	public void saveReply(WebEnquiryGoodsReply webEnquiryGoodsReply) {
    	webEnquiryGoodsReplyDao.saveReply(webEnquiryGoodsReply);
		
	}

	public List<WebEnquiryGoodsReply> selectByCode(String code) {
	
		return webEnquiryGoodsReplyDao.selectByCode(code);
	}

	public List<WebEnquiryGoodsReply> selectByEnquiryGoodsId(String id) {
		
		return webEnquiryGoodsReplyDao.selectByEnquiryGoodsId(id);
	}
	
}